package net.minecraft.src;

import net.minecraft.src.AchievementList;
import net.minecraft.src.EntityPlayer;
import net.minecraft.src.IInventory;
import net.minecraft.src.Item;
import net.minecraft.src.ItemStack;
import net.minecraft.src.Slot;

public class SlotFurnace extends Slot {

    private EntityPlayer field_27007_d;


    public SlotFurnace(EntityPlayer var1, IInventory var2, int var3, int var4, int var5) {
        super(var2, var3, var4, var5);
        this.field_27007_d = var1;
    }

    public boolean isItemValid(ItemStack var1) {
        return false;
    }

    public void onPickupFromSlot(ItemStack var1) {
        var1.func_28142_b(this.field_27007_d.worldObj, this.field_27007_d);

        if(var1.itemID == Item.ingotIron.shiftedIndex) {
            this.field_27007_d.addStat(AchievementList.field_27108_k, 1);
        }

        if(var1.itemID == Item.fishCooked.shiftedIndex) {
            this.field_27007_d.addStat(AchievementList.field_27103_p, 1);
        }

        super.onPickupFromSlot(var1);
    }
}
